package com.ruoyi.system.domain.bo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import com.ruoyi.system.domain.DyAnchorPhotoDetail;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 主播业务对象 dy_anchor
 *
 * @author ruoyi
 * @date 2024-06-20
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class DyAnchorPhotoBo extends BaseEntity {

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = { EditGroup.class })
    private Long id;
    /**
     * 主播id
     */
    @NotNull(message = "id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long anchorId;

    /**
     * 主播名称
     */
    private String anchorName;

    /**
     * 照片数量
     */
    private Integer photoNum;

    /**
     * 最新时间
     */
    @NotNull(message = "更新时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date newestTime;

    /**
     * 照片金额
     */
    @NotNull(message = "照片金额不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal photoMoney;

    /**
     * 备注
     */
    private String des;

    /**
     * 照片
     */
    @NotEmpty(message = "照片不能为空", groups = { AddGroup.class, EditGroup.class })
    private List<DyAnchorPhotoDetail> details;

    /**
     * 客户端id
     */
    private Long clientId;

    /**
     * 支付类型(0微信， 1支付宝, 2汇付支付宝，3汇付微信)
     */
    private Long payType;

    /**
     * 商品id
     */
    private Long goodsId;

    /**
     * openId
     */
    private String openId;


    /**
     * 相册类型
     */
    private String category;

    /**
     * 标签 0-图片 1-视频
     */
    private Integer labels;

}
